package com.exam.mapper;
import com.exam.entity.JudgeQuestion;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.Optional;

@Repository
public interface JudgeQuestionRepository extends JpaRepository<JudgeQuestion, Long> {
    Page<JudgeQuestion> findAll(Pageable pageable); // 分页查询所有

    Optional<JudgeQuestion> findBySubjectAndQuestionAndAnswer(String subject, String question, Boolean answer);
}